package uebString;

import java.util.*;
import htw.stack.*;
import htw.stack.Stack;

/**
 * Class StringStack extends Stack 
 * 
 * @author Andreas Dier, Steffen Schuhmann 
 * @version 1.0
 */
public class StringStack extends Stack{
	
	/**
	 * Constructor of the Class 
	 */
	public StringStack(String s){
		super(s);
	}
	
	/**
	 * pushs a String to the stack
	 * 
	 * @param s String to push
	 */
	public void push(String s){
		super.push(s);
	}
	
	/**
	 * pops a String from the stack
	 * 
	 * @return returns the String that was poped
	 */
	public String pop(){
		return (String) super.pop();
	}
	
	/**
	 * return the stackSize
	 * 
	 * @return returns the stackSize
	 */
	public int stackSize(){
		return super.stackSize();
	}
	
	/**
	 * return the size
	 * 
	 * @return returns the size
	 */
	public int size(){
		return super.stackSize();
	}
	
	/**
	 * return the freespace of the stack
	 * 
	 * @return returns freespace of the stack
	 */
	public int freespace(){
		return super.freespace();
	}
}